package pt.isel.pdm.yamba;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class DetailActivity extends Activity{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.details);
		Bundle b = getIntent().getExtras();
		String author = b.getString("author");
		String id = b.getString("id");
		String text = b.getString("text");
		String date = b.getString("time");
		((TextView) findViewById(R.id.idDetailAuthorTextViewSmall)).setText(author);
		((TextView) findViewById(R.id.idDetailDateTextViewSmall)).setText(date);
		((TextView) findViewById(R.id.idDetailIDTextViewSmall)).setText(id);
		((TextView) findViewById(R.id.idDetailMessageTextViewSmall)).setText(text);
	}

}
